package com.model;

/**
 * Ret_prd_inId entity. @author MyEclipse Persistence Tools
 */

public class Ret_prd_inId implements java.io.Serializable {

	// Fields

	private String mtrl_box_id;
	private String cus_id;

	// Constructors

	/** default constructor */
	public Ret_prd_inId() {
	}

	/** full constructor */
	public Ret_prd_inId(String mtrl_box_id, String cus_id) {
		this.mtrl_box_id = mtrl_box_id;
		this.cus_id = cus_id;
	}

	// Property accessors

	public String getMtrl_box_id() {
		return this.mtrl_box_id;
	}

	public void setMtrl_box_id(String mtrl_box_id) {
		this.mtrl_box_id = mtrl_box_id;
	}

	public String getCus_id() {
		return this.cus_id;
	}

	public void setCus_id(String cus_id) {
		this.cus_id = cus_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_prd_inId))
			return false;
		Ret_prd_inId castOther = (Ret_prd_inId) other;

		return ((this.getMtrl_box_id() == castOther.getMtrl_box_id()) || (this
				.getMtrl_box_id() != null && castOther.getMtrl_box_id() != null && this
				.getMtrl_box_id().equals(castOther.getMtrl_box_id())))
				&& ((this.getCus_id() == castOther.getCus_id()) || (this
						.getCus_id() != null && castOther.getCus_id() != null && this
						.getCus_id().equals(castOther.getCus_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getMtrl_box_id() == null ? 0 : this.getMtrl_box_id()
						.hashCode());
		result = 37 * result
				+ (getCus_id() == null ? 0 : this.getCus_id().hashCode());
		return result;
	}

}